<?php
/** Test model: document
 *
 */
namespace Test\modules\Test;

class Model_Document
    extends \Yz_Model_ActiveRecord
{
    /**
     *
     */
    protected function init()
    {
        debug();
        $employee = $this->selectModel('Employee');
        $d =& $this->__dict__;
        $d['id']     = new \Yz_Model_Field_Id();
        $d['date']   = new \Yz_Model_Field_Date();
        $d['title']  = new \Yz_Model_Field_String('notnull');
        $d['text']   = new \Yz_Model_Field_RichText();
        $d['sender']  = new \Yz_Model_Field_ForeignKey($employee, array('fieldName' => 'senderId'));
        $d['receiver'] = new \Yz_Model_Field_ForeignKey($employee, array('fieldName' => 'receiverId'));
        $d['original'] = new \Yz_Model_Field_SelfReference($this);
    }


}
